import React, { useId } from 'react'

export default function App() {
    // useId 生成一个 id 
    const myid = useId()

    return (
        <div>
            <h1 id={myid + 'cell'}>你好 App</h1>

            <div>
                <label htmlFor={myid}>用户名</label>
                <input id={myid} type="text" />
            </div>
        </div>
    )
}
